<?php
class DbBack extends Controller{
	public $backUpFile = '';	//备份文件
	public $db;					//数据连接
	
	public function __construct(){
		$this->db = Yii::app()->db;
		var_dump($this->db->getAttributes());
	}
	
	public function generateBackupFile($backupFile = null){
		if(empty($backupFile)){
			$backupFile = $this->db->getDriverName();
		}
	}
	
	public function backup($backupFile = null, $tables = array()){
		
	}
}